<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        msg="wocao,你家真大";

        if(msg.search(/([我卧]|wo)\s*([槽操草艹]|cao)/) !=-1)
            console.error('发现敏感词');
        else
            console.log('xx说：'+msg);
    </script>
</body>
</html>




